package cn.zqy.demo.day06;

public class UseStu {
    public static void main(String[] args) {
        Stu one = new Stu();
        one.setAge(99);
        one.setName("王颖慧");
        System.out.println("姓名：" + one.getName() + " 年龄：" + one.getAge());
        System.out.println("=====================");

        Stu two = new Stu("王富强", 888);
        System.out.println("姓名：" + two.getName() + " 年龄：" + two.getAge());
        System.out.println("=====================");
        two.setAge(99);
        System.out.println("姓名：" + two.getName() + " 年龄：" + two.getAge());


    }
}
